<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Qutable quotes</title>
  <script>
    function getQutoes() {
      var quotes = new Array(4);
      var sources = new Array(4);
      quotes[0] =
        'When I was a by of 14, my fater was so \
            ignorant...but when I got to be21. I was astonished\
            at how much be had learned in 7 years.';
      sources[0] = 'Mark Twain';
      quotes[1] = 'Everybody is ignorant. Only on different subjects.';
      sources[1] = 'Will Rogers';
      quotes[2] =
        'They say such nice things about people at \
        their funerals that it makes me sad that I"m going to \
        miss mine by just a few days.';
      sources[2] = 'Garrison Kellor';
      quotes[3] = 'What"s another word for thesaurus?';
      sources[3] = 'Steven Wright';
      var i = Math.floor(Math.random() * quotes.length);
      document.writeln('<p style="background-color: #ffb6c1">');
      document.writeln(quotes[i]);
      document.writeln('<em>- ' + sources[i] + '</em>');
      document.writeln('</p>');
    }
  </script>
</head>
<body>
  <h1>Quatable Quotes</h1>
  <p>
    Following is a random quotable quote. To see a new quote just reload this
    page.
  </p>
  <script>
    getQutoes();
  </script>
</body>
</html>
